<?php
    $reportMember=$_SESSION["report"]["member"];
    ?>
<style type="text/css">
    #navBarAdmin, #navBarFarmer{
        display: none;
    }
</style>
<script type="text/javascript">
    function showGraph(){
        $.post('report/costCompare/costCompareGraph.php',
            $('#selectCropForm').serialize()
        ,function(data){
            $('#costCompareGraph').html(data);
        });
    }
    
    function showCrop(){
        $.post('report/cropList/cropList.php',{
            startYear: startYear,
            keyword: $('#keyword').val()
        },function(data){
            $('#cropList').html(data);
        });
    }
    
    function setCost(costID,costName){
        $('#dropDownName').html(costName);
        $('#costID').val(costID);
        showGraph();
    }
    
    var startYear='';
    function setYear(stYear){
        startYear=stYear;
        $('#startYear').html(stYear);
    }
</script>
<?php
    include dirname(__FILE__)."/../selectCrop.php";
?>
<div id="graphDIV" style="display: none;">
    <div id="costCompareGraph" class="box-inner"></div>
</div>
<script type="text/javascript">
    showGraph();
    showCrop();
    $('#keyword').keyup(function(){
        showCrop();
    });
</script>